package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 推送消息表
 * </p>
 *
 * @author Shane
 * @since 2019-10-22
 */
@TableName("sys_push_message")
public class SysPushMessage implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	@TableField(value = "msg_type")
	private Integer msgType;

	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 推送标题
	 */
	private String title;

	/**
	 * 推送内容
	 */
	private String content;

	/**
	 * 推送详情
	 */
	@TableField(value = "`data`")
	private String data;

	/**
	 * 消息类型，可根据该字段进行不同的跳转
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 删除状态，0-未删除  1-已删除
	 */
	@TableField(value="is_delete")
	private Integer isDelete;

	/**
	 * 读状态，0-未读  1-已读
	 */
	@TableField(value="is_read")
	private Integer isRead;

	/**
	 * 推送状态，0-未推送  1-已推送
	 */
	@TableField(value="is_push")
	private Integer isPush;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public SysPushMessage() {
	}

	public SysPushMessage(Integer msgType, Integer userId, String title, String content, String data, Integer type) {
		this.msgType = msgType;
		this.userId = userId;
		this.title = title;
		this.content = content;
		this.data = data;
		this.type = type;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMsgType() {
		return msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public Integer getIsPush() {
		return isPush;
	}

	public void setIsPush(Integer isPush) {
		this.isPush = isPush;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
